package creational.property.copy.deep;

import java.io.Serializable;

/**
 * 这是一个普通的棍子类, 他实现了序列化接口，可以支持深度克隆
 */
public class ClubS implements Serializable{
    private int m_iLength;
    private int m_iDiameter;

    public int getLength() {
        return m_iLength;
    }

    public void setLength(int length) {
        this.m_iLength = length;
    }

    public int getDiameter() {
        return m_iDiameter;
    }

    public void setDiameter(int diameter) {
        this.m_iDiameter = diameter;
    }

    @Override
    public String toString() {
        return "Club{" +
                "m_iLength=" + m_iLength +
                ", m_iDiameter=" + m_iDiameter +
                '}';
    }
}
